﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JXT.PrimaryKey.Batman.Domain.Models;

namespace JXT.PrimaryKey.Batman.Domain.UserSystem.Models
{
    [Serializable]
    public class SystemStatus : ValueObjectBase<SystemStatus>
    {
        public string SysId { get; set; }

        public string DynamicKey { get; set; }

        public DateTime CreateTime { get; set; }

        public DateTime LastActiveTime { get; set; }

        public string ClientIp { get; set; }

        public override bool Equals(SystemStatus other)
        {
            if (other == null)
                return false;
            return other.ClientIp == ClientIp &&
                other.CreateTime == CreateTime &&
                other.LastActiveTime == LastActiveTime &&
                other.SysId == SysId &&
                other.DynamicKey == DynamicKey;
        }
    }
}
